<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<link href="assets/css/bootstrap-select.css" rel="stylesheet"/>
<link href="assets/css/front/listCommonStyle.css" rel="stylesheet"/>
<link href="assets/css/modify.css" rel="stylesheet"/>
<script src="assets/js/select2/select2.js"></script>
<div class="row margin-left-10">
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <div class="widget flat margin-top-0" style="margin: -10px 0 0px 0!important;">
            <div class="widget-header bordered-sky theme-bordered nopadding">
                <div class="widget-buttons widget-label nomargin-bottom">
                    <label class="businessBtns">
                        <ol class="breadcrumb" style="margin: 0;">
                            <li style="color: #809fa6;">意见反馈</li>
                            <li class="active" style="color: #23a8f5;">意见反馈</li>
                        </ol>
                    </label>
                </div>
            </div>
        </div>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 ">
        <div class="widget flat searchCriteria " style="margin: 3px 0 0px 0!important;padding-bottom: 10px">
            <div class="widget-header bordered-sky theme-bordered nopadding">
                <div class="widget-buttons widget-label nomargin-bottom">
                    <label class="pull-right businessBtns">
                        <label class="margin-right-10">
                            <a style="border-radius: 0px;border: none;background: #23a8f5 !important;"
                               class="btn btn-blue shiny download" onclick="exportData('${searchFormId}','MemberInformation.xlsx')"><i class="fa fa-share"></i>导出
                            </a>
                        </label>
                        <label class="margin-right-10">
                            <a style="border-radius: 0px;border: none;background: #ffab00 !important;"
                               class="btn btn-warning shiny search "><i class="fa fa-search"></i>搜索
                            </a>
                        </label>
                        <label onclick="iconsChange()" style="margin-right: 6px">
                            <label>
                                <a class="iconsChangeA" style="width: 13px;height: 13px;cursor: pointer;background: url('assets/img/nav-img/icon_hidden.png');display: block;-webkit-user-select:none; -moz-user-select:none; -ms-user-select:none;user-select:none;" value="1"></a>
                            </label>
                            <label style="color: #23a8f5 ;vertical-align: middle;padding-top:4px;">
                                <span class="iconsChangeSpan" style="-webkit-user-select:none; cursor: pointer;-moz-user-select:none; -ms-user-select:none;user-select:none;">隐藏搜索栏</span>
                            </label>
                        </label>
                    </label>
                </div>
            </div>
        </div>
        <div class="search_Bar" style="vertical-align: middle;clear: both;">
            <form id="${searchFormId}" action="${actionUrl}" class="searchConditions" method="POST">
                <div class="row searchInput" style="margin: 0;">
                    <label class="iconchange1 hidden" style="position: absolute;right: 10px;top: 50px;" >
                        <a class="search_Bar_A" style="color: #2a6496;cursor: pointer;" onclick="iconchangeShow(this)" value="1">筛选更多<i class="fa fa-chevron-down" style="padding-left: 5px"></i></a>
                    </label>
                    <label style="margin-bottom: 15px;margin-right: 40px;" class="search_Bar_item hidden">
                        <label style="width: 78px">反馈标题：</label>
                        <label>
                            <input type="text" name="idEntity.name" value="${search_map.idEntity.name[0]}" style="width: 200px;height: 30px;border: 1px solid #c6d5d8;border-radius: 4px !important;">
                        </label>
                    </label>
                    <label style="margin-bottom: 15px;margin-right: 40px;" class="search_Bar_item hidden">
                        <label style="width: 78px">反馈园所：</label>
                        <label>
                            <input type="text" name="idEntity.name" value="${search_map.idEntity.name[0]}" style="width: 200px;height: 30px;border: 1px solid #c6d5d8;border-radius: 4px !important;">
                        </label>
                    </label>
                    <label style="margin-bottom: 15px;margin-right: 40px;" class="search_Bar_item hidden">
                        <label style="width: 78px">处理状态：</label>
                        <label>
                            <input type="text" name="idEntity.name" value="${search_map.idEntity.name[0]}" style="width: 200px;height: 30px;border: 1px solid #c6d5d8;border-radius: 4px !important;">
                        </label>
                    </label>
                    <label style="margin-bottom: 15px;margin-right: 40px;" class="search_Bar_item hidden">
                        <label style="width: 78px">课程状态：</label>
                        <label>
                            <select class="form-select-1"
                                    style="width: 200px;height: 30px;border: 1px solid #c6d5d8;border-radius: 4px !important;padding-left: 10px!important;padding-right: 0px!important;"
                                    name="isBlockUp">
                                <option value="true">已启用</option>
                                <option value="false">已停用</option>
                            </select>
                        </label>
                    </label>
                </div>
            </form>
        </div>
        <div class="widget flat radius-bordered" style="margin-top: 0;box-shadow:0px 0px 10px rgba(122,161,184,0.3);">
            <div class="widget-body no-padding">
                <div class="topPagingBar hidden">
                    ${pagingBar}
                </div>
                <div class="table-scrollable" style="border: none;" id="tableScrollable">
                    <!-- 数据表列信息列表 -->
                    <table class="table table-hover dataTable newtable">
                        <thead>
                        <tr>
                            <th title="选择" class="checkboxColumnTh">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" class="chkAll" onclick="chkAll()">
                                        <span class="text"></span>
                                    </label>
                                </div>
                            </th>
                            <th title="属性名">序号</th>
                            <th>操作项</th>
                            <th title="课程体系Id">提交人</th>
                            <th title="课程名称">园所</th>
                            <th title="状态">标题</th>
                            <th title="操作人">状态</th>
                            <th title="操作日期">提交时间</th>
                            <th title="操作日期">处理时间</th>
                            <th title="操作日期">处理人</th>
                        </tr>
                        </thead>
                        <tbody>
                        <#if page_bean.list?size==0>
                            <tr>
                                <td align="center">无数据</td>
                            </tr>
                        </#if>
                        <#list page_bean.list as data>
                            <tr>
                                <td class="checkboxColumnTd">
                                    <div class="checkbox">
                                        <label>
                                            <input type="checkbox" class="chk" name="id" value="${data.id}">
                                            <span class="text"></span>
                                        </label>
                                    </div>
                                </td>

                                <td>${data_index+1+(page_bean.pageNo-1)*page_bean.pageSize}</td>

                                <td align="center">
                                    <a style="color: #2679B8" class=" update margin-right-10" href="javascript:void(0);"
                                        targetDataId="${data.id}" onclick="feedback(this)"
                                       title="查看">查看</a>
                                    <a style="color: #2679B8" class=" update margin-right-10" href="javascript:void(0);"
                                       targetDataId="${data.id}" onclick="processFeedback(this)"
                                       title="处理">处理</a>
                                </td>
                                <td>${(data.createUser.userName???string(data.createUser.userName?html,"未设置"))!'未设置'}</td>
                                <td>${(data.sysSchool.schoolName???string(data.sysSchool.schoolName?html,"未设置"))!'未设置'}</td>
                                <td>${(data.title???string(data.title?html,"未设置"))!'未设置'}</td>
                                <td>${(data.status???string(data.status?html,"未设置"))!'未设置'}</td>
                                <td>${(data.createTime???string(data.createTime?html,"未设置"))!'未设置'}</td>
                                <td>${(data.updateTime???string(data.updateTime?html,"未设置"))!'未设置'}</td>
                                <td>${(data.updateUser.userName???string(data.updateUser.userName?html,"未设置"))!'未设置'}</td>
                            </tr>
                        </#list>
                        </tbody>
                    </table>
                </div>
                ${pagingBar}
            </div>
        </div>
    </div>
</div>
</div>
<script>
    $(".selectpicker").select2();

    /**
     * 查看反馈意见
     * @param that
     */
    function feedback(that) {
        var targetDataId = $(that).attr("targetDataId");
        ajaxRequest("TssFeedbackController/tssFeedbackDetails.do", {
           id : targetDataId
        }, function (html) {
            getTopWin().bootbox.dialog({
                message: html,
                title: "反馈详情",
                className: 'myDialog tssMemberCheckAttendanceDialog'
            });
        }, function () {
            ajaxError("加载页面失败!")
        }, "get", "html")
    }
    /**
     * 查看反馈意见
     * @param that
     */
    function processFeedback(that) {
        var targetDataId = $(that).attr("targetDataId");
        ajaxRequest("TssFeedbackController/processTssFeedbackDetails.do", {
           id : targetDataId
        }, function (html) {
            getTopWin().bootbox.dialog({
                message: html,
                title: "反馈详情",
                className: 'myDialog tssMemberCheckAttendanceDialog'
            });
        }, function () {
            ajaxError("加载页面失败!")
        }, "get", "html")
    }

</script>